<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <!-- location:       对象属性 返回值 
    location.href   获取或者设置整个URL 
    location.host   返回主机（域名） www.itheima.com 
    location.port   返回端口号如果未写返回空字符串 
    location.pathname 返回路径 
    location.search  返回参数 
    location.hash 返回片段#后面内容常见于链接锚点 -->
  </body>
</html>
